package top.lshaci.learning.framework.model.dto;

import lombok.Data;
import top.lshaci.learning.framework.valid.IntOptional;

import javax.validation.constraints.NotNull;

/**
 * TestDTO
 *
 * @author lshaci
 * @since 1.0.0
 */
@Data
public class TestDTO {

    @NotNull(message = "ID不能为空")
    private Long id;

    @IntOptional(value = {0, 1}, message = "爱好只能选择指定的值")
    private Integer hobby;
}
